package com.dao.lx;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.entity.Diystatus;

public interface DiystatusDAO extends CrudRepository<Diystatus, Long>{
	@Query("from Diystatus d where d.diystatusIfdelete = 1")
	public List<Diystatus> findAllDiystatusIfdelete();
	
	@Query("from Diystatus d where d.diystatusIfdelete = 1 and d.diystatusState = '开启'")
	public List<Diystatus> findAllOk();
}